#ifndef THREAD_H
#define THREAD_H

#include <QThread>
#include <QDebug>

extern "C"
{
#include "myhead.h"
}

struct usrbuf
{
    void *start;
    int length;
};


class Thread : public QThread
{
    Q_OBJECT
public:
    explicit Thread(QObject *parent = 0);

    bool isExit = false;
    void run();
    int yuyv2rgb(int y, int u, int v);
    int yuyv2rgb0(unsigned char *yuv, unsigned char *rgb, unsigned int width, unsigned int height);
signals:
    void image(uchar *);
public slots:
};

#endif // THREAD_H
